<template>
  <div class="write-notes-wrap">
    <el-page-header :icon="null" @back="back">
      <template #content>
        <span class="title"> 笔记 </span>
      </template>
      <template #extra>
        <div class="flex items-center">
          <el-button type="primary" class="ml-2" @click="save">保存</el-button>
        </div>
      </template>
    </el-page-header>
    <div class="my-wangeditor-wrap">
      <my-wangeditor ref="mywangeditor"></my-wangeditor>
    </div>
  </div>
</template>

<script>
import MyWangeditor from "./my-wangeditor.vue";
export default {
  name: "JddChromePluginsWriteNotes",
  components: { MyWangeditor },
  data() {
    return {};
  },

  mounted() {},

  methods: {
    back() {
      this.$router.back();
    },
    save() {
      this.$refs.mywangeditor.submitForm();
    },
  },
};
</script>

<style lang="scss" scoped>

.write-notes-wrap {
  width: 100%;
  min-height: 550px;
  padding: 15px 20px;
}
.title {
  font-size: 16px;
  font-weight: bolder;
}
.my-wangeditor-wrap {
  padding: 20px 0px;
}
</style>